package com.elaine.model.alapi;

import lombok.Data;

/**
 * @author wrb
 * @date 2020/3/31 14:49
 */
@Data
public class AlapiResponse<T> {

	/**
	 * code : 200
	 * msg : success
	 * data : {}
	 * author : {"name":"Alone88","desc":"由Alone88提供的免费API 服务，官方文档：www.alapi.cn"}
	 */

	private int code;
	private String msg;
	private T data;
	private AuthorBean author;

	public boolean isSuccess() {
		return code == 200;
	}

	@Data
	public static class AuthorBean {
		/**
		 * name : Alone88
		 * desc : 由Alone88提供的免费API 服务，官方文档：www.alapi.cn
		 */
		private String name;
		private String desc;
	}
}
